package com.ict.web.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ict.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.Date;

@Data
public class AnnualProjectPlanEditDto {
    /** 计划名称 */
    @ApiModelProperty(value = "计划名称")
    @NotBlank(message = "计划名称不能为空")
    private String name;

    /** 年份 */
    @ApiModelProperty(value = "年份")
    @NotBlank(message = "年份不能为空")
    private String year;

    /** 起始时间 */
    @ApiModelProperty(value = "起始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8",shape = JsonFormat.Shape.STRING)
    @NotNull(message = "起始时间不能为空")
    private LocalDateTime startTime;

    /** 截至时间 */
    @ApiModelProperty(value = "截至时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8",shape = JsonFormat.Shape.STRING)
    @NotNull(message = "截至时间不能为空")
    private LocalDateTime endTime;
}
